package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.MqconfigMapper;
import com.cn.jdia.dc.model.Mqconfig;
import com.cn.jdia.dc.service.IMqconfigService;

@Service("mqconfigService")
public class IMqconfigServiceImpl implements IMqconfigService{
	
	@Resource
	private MqconfigMapper mapper;
	
	@Override
	public int insert(Mqconfig mqconfig) {
		return this.mapper.insertSelective(mqconfig);
	}

	@Override
	public List<Mqconfig> getMqconfigByContentType(String contentType) {
		return this.mapper.selectByContent(contentType);
	}

	@Override
	public List<Mqconfig> getQuotaByPro(String project, String ip) {
		return this.mapper.selectByPro(project, ip);
	}

	@Override
	public List<Mqconfig> getAllConfig() {
		// TODO Auto-generated method stub
		return this.mapper.selectAll();
	}

}
